from datetime import datetime

from huiyan.extions import db


class Project(db.Model):
    __tablename__ = 'project'  # 设置表名, 表名默认为类名小写

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(100))
    creationTime = db.Column(db.DateTime, default=datetime.utcnow)
    is_delete = db.Column(db.Boolean, default=False)
    updateTime = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
